import axios from "@/util/interceptor.js";

// 渲染数据
export function getUsers(data){
    return axios({
        url:'users',
        method:'get',
        params:data
    })
}

// 修改状态
export function getState(user){
    return axios({
        url:`users/${user.id}/state/`+user.mg_state,
        method:"put",
    })
}